// 引入Vue
import Vue from "vue";
//引入Vuex
import Vuex from "vuex";

import user from "./modules/user";
import channel from "./modules/channel";

//应用插件
Vue.use(Vuex);

const actions = {};
const mutations = {};
const state = {};
const getters = {};

//创建并暴露一个管理上述“四个弟弟”的“大哥”
export default new Vuex.Store({
  actions,
  mutations,
  state,
  getters,
  modules: {
    user,
    channel,
  },
});
